package com.chouxiaozi.sercurity.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @RequestMapping("/hello")
    public String hello() {
        return "hello spring security!";
    }

    @RequestMapping("/admin/hello")
    public String helloAdmin(){
        return "hello admin!";
    }

    @RequestMapping("/user/hello")
    public String helloUser(){
        return "hello user!";
    }

    @RequestMapping("/login")
    public String login(){
        return "please login!";
    }

    @RequestMapping("/logout")
    public String logout(){
        return "logout success!";
    }
}
